public class DataTypeTest1 {
    public static void main(String[] args){
        int a=9451;
        int A=a%10;
        int B=a/10%10;
        int C=a/100%10;
        int D=a/1000;
        System.out.println("a的个位数、十位数、百位数、千位数分别为");
        System.out.println("个位数："+A);
        System.out.println("十位数："+B);
        System.out.println("百位数："+C);
        System.out.println("千位数："+D);
    }
}
